powerpc/lib/sstep: Fix building for powerpcspe
authorJames Clarke <jrtc27@jrtc27.com>
Thu, 7 Dec 2017 20:32:44 +0000 (20:32 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 20 Jul 2018 21:08:27 +0000 (22:08 +0100)
commitbc9e2fee14f1270ce8ac7c13e9abb35849c15920
tree749a7562e3ccdccbb5d2b07fe1b25f94200737c2
parente0be96c69c0565a43bc0ac7f54956b103b4c69cd
powerpc/lib/sstep: Fix building for powerpcspe

On powerpcspe, ptesync is not a recognised instruction and so fails to
assemble. We don't expect to have to emulate an lwsync or a ptesync on a
32-bit kernel, so just ifdef them out, and catch any unexpected barrier
types.

Fixes: 3cdfcbfd32b9 ("powerpc: Change analyse_instr so it doesn't modify *regs")
Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Gbp-Pq: Topic bugfix/powerpc
Gbp-Pq: Name powerpc-lib-sstep-fix-building-for-powerpcspe.patch
arch/powerpc/lib/sstep.c